package server;

import server.netty.NettyServer;
import service.BlogService;
import service.UserService;
import service.impl.BlogServiceImpl;
import service.impl.UserServiceImpl;

public class ServerTest {
    public static void main(String[] args) {
        UserService userService = new UserServiceImpl();
        BlogService blogService = new BlogServiceImpl();
        ServiceProvider serviceProvider = new ServiceProvider("127.0.0.1", 8888);
        serviceProvider.addService(userService);
        serviceProvider.addService(blogService);

        new NettyServer(serviceProvider).start(8888);
    }
}
